|
|
|
|
|
|
|
LISTING 21.1. CABHTML.HTMTHE HTML FILE THAT IS GENERATED DURING THE SETUP WIZARD PROCESS. |
|
|
|
 |
|
|
|
|
1: <HTML>
2: <HEAD>
3: <TITLE>Project1.CAB</TITLE>
4: </HEAD>
5: <BODY>
6: <OBJECT ID=Form1
7: CLASSID=CLSID:920C5568-8EBD-11D1-ABBA-40C109C10000
8: CODEBASE=Project1.CAB#version=1,0,0,0>
9: </OBJECT>
10:
11: <SCRIPT LANGUAGE=VBScript>
12: Sub Window_OnLoad
13: Document.Open
14: Document.Write <FRAMESET>
15: Document.Write <FRAME SRC=Form1.VBD >
16: Document.Write </FRAMESET>
17: Document.Close
18: End Sub
19: </SCRIPT>
20: </BODY>
21: </HTML> |
|
|
|
|
|
|
|
|
Note The Clsid value in the preceding example will be different because it is generated by the Setup Wizard on your computer. |
|
|
|
|
|
|
|
|
|
Exploring the UserDocument Object |
|
|
|
|
|
|
|
|
The UserDocument object is the key part of any ActiveX document. It provides the container for all the controls that you need to create the user interface of the document. You can place any controls on the UserDocument or use graphics methods and the Print method to display other information directly on the document. |
|
|
|
|
|
|
|
|
Although the UserDocument is similar in many respects to a form, there are also some key differences. Understanding what those differences are enables you to better control the ActiveX document. The events of a form that are not supported by the UserDocument object as follows: |
|
|
|
|
|